home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Sample Code / 7Edit 3.1 / Sources / SVAECoercions.h < prev    next >
Encoding:
Text File  |  1995-11-20  |  1009 b   |  38 lines  |  [TEXT/CWIE]

  1. // SVAECoercions.h
  2. //
  3. // 7Edit 3.1d1. Original version by Jon Lansdell and Nigel Humphreys.
  4. // 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1995, all rights reserved.
  6.  
  7. #ifndef __SVAECOERCIONS__
  8. #define __SVAECOERCIONS__
  9.  
  10. #include <AppleEvents.h>
  11. #include <AEObjects.h>
  12. #include <AERegistry.h>
  13.  
  14. OSErr            InstallCoercions(void);
  15.  
  16. pascal OSErr    CoerceObjToAnything(const AEDesc    *theAEDesc,
  17.                                     DescType        toType,
  18.                                     long            handlerRefCon,
  19.                                     AEDesc            *result);
  20.  
  21. pascal OSErr    CoerceWindowToText(AEDesc    *theAEDesc,
  22.                                     DescType        toType,
  23.                                     long            handlerRefCon,
  24.                                     AEDesc            *result);
  25.  
  26. pascal OSErr    CoerceWindowPropertyToText(AEDesc        *theAEDesc,
  27.                                             DescType    toType,
  28.                                             long        handlerRefCon,
  29.                                             AEDesc        *result);
  30.  
  31. pascal OSErr    CoerceListToAnything(AEDesc        *theAEDesc,
  32.                                      DescType    toType,
  33.                                      long        handlerRefCon,
  34.                                      AEDesc        *result);
  35.  
  36. OSErr            CoerceAnythingToType(AEDesc* theDesc, DescType toType, AEDesc* result);
  37. #endif
  38.